package com.efast.dmom.mgmt.entity.master;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 实体类对应的数据表为：  tm_bas_delivery_unit
 * @author ChenLipeng
 * @date 2018-04-18 13:11:44
 */
@ApiModel(value ="配送单位基本信息")
public class TmBasDeliveryUnit {
    @ApiModelProperty(value = "主键id")
    private Integer tmBasDeliveryUnitId;

    @ApiModelProperty(value = "配送单位标识码")
    private String deliveryUnitNo;

    @ApiModelProperty(value = "配送单位中文名称")
    private String deliveryUnitNameC;

    @ApiModelProperty(value = "配送单位英文名称")
    private String deliveryUnitNameE;

    @ApiModelProperty(value = "配送单位中文名称缩写")
    private String deliveryUnitNameCS;

    @ApiModelProperty(value = "配送单位英文名称缩写")
    private String deliveryUnitNameES;

    @ApiModelProperty(value = "配送单位邮件地址")
    private String deliveryUnitMailAddr;

    @ApiModelProperty(value = "配送单位中文地址")
    private String deliveryUnitAddrC;

    @ApiModelProperty(value = "配送单位英文地址")
    private String deliveryUnitAddrE;

    @ApiModelProperty(value = "配送单位联系人1")
    private String deliveryUnitContact1;

    @ApiModelProperty(value = "配送单位电话号码1")
    private String deliveryUnitTelNo1;

    @ApiModelProperty(value = "配送单位传真号码1")
    private String deliveryUnitFaxNo1;

    @ApiModelProperty(value = "配送单位手机号码1")
    private String deliveryUnitMobileNo1;

    @ApiModelProperty(value = "配送单位联系人2")
    private String deliveryUnitContact2;

    @ApiModelProperty(value = "配送单位电话号码2")
    private String deliveryUnitTelNo2;

    @ApiModelProperty(value = "配送单位传真号码2")
    private String deliveryUnitFaxNo2;

    @ApiModelProperty(value = "配送单位手机号码2")
    private String deliveryUnitMobileNo2;

    @ApiModelProperty(value = "配送单位联系人3")
    private String deliveryUnitContact3;

    @ApiModelProperty(value = "配送单位电话号码3")
    private String deliveryUnitTelNo3;

    @ApiModelProperty(value = "配送单位传真号码3")
    private String deliveryUnitFaxNo3;

    @ApiModelProperty(value = "配送单位手机号码3")
    private String deliveryUnitMobileNo3;

    @ApiModelProperty(value = "发运地类型 1.供应商 2.分拣仓库---车厂内流转使用 4.车间缓存区---预留选项，目前无用")
    private Integer deliverySendType;

    @ApiModelProperty(value = "目的地类型 1.分拣仓库---车厂内流转使用 3.车间缓存区---预留选项，目前无用 5.供应商")
    private Integer deliveryRecType;

    @ApiModelProperty(value = "是否mr运输商 车厂内流转使用")
    private Integer isMrSuppl;

    @ApiModelProperty(value = "是否在分配的同时，自动生成拣货任务（是1否0）")
    private String allocPickMark;

    @ApiModelProperty(value = "收货即入库 1时：收货后自动生成上架任务并直接自动上架")
    private String inboundConfirm;

    @ApiModelProperty(value = "是否允许部分分配，允许0，不允许1")
    private String partiaAll;

    @ApiModelProperty(value = "接收手工上线指示单时是否生成出库订单（是1否0）")
    private String mrSheetSo;

    @ApiModelProperty(value = "配送单位所属仓库类型")
    private String deliveryUnitWarehouse;

    @ApiModelProperty(value = "用于补货：是否在分配的同时，自动生成拣货任务（是1否0）")
    private String allocPickMarkRep;

    @ApiModelProperty(value = "收货即上传sap 1时：收货后即组织数据上传sap ")
    private String inboundFlag;

    @ApiModelProperty(value = "备注")
    private String notes;

    @ApiModelProperty(value = "负库存限制0:不限制1:限制")
    private Integer qtyLimit;

    @ApiModelProperty(value = "是否激活")
    private Integer markStatus;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "创建用户")
    private String createUser;

    @ApiModelProperty(value = "上次更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;

    @ApiModelProperty(value = "更改用户")
    private String lastUpdateUser;

    @ApiModelProperty(value = "版本控制")
    private Integer optCounter;

    @ApiModelProperty(value = "企业代码")
    private String companyCode;

    public Integer getTmBasDeliveryUnitId() {
        return tmBasDeliveryUnitId;
    }

    public void setTmBasDeliveryUnitId(Integer tmBasDeliveryUnitId) {
        this.tmBasDeliveryUnitId = tmBasDeliveryUnitId;
    }

    public String getDeliveryUnitNo() {
        return deliveryUnitNo;
    }

    public void setDeliveryUnitNo(String deliveryUnitNo) {
        this.deliveryUnitNo = deliveryUnitNo == null ? null : deliveryUnitNo.trim();
    }

    public String getDeliveryUnitNameC() {
        return deliveryUnitNameC;
    }

    public void setDeliveryUnitNameC(String deliveryUnitNameC) {
        this.deliveryUnitNameC = deliveryUnitNameC == null ? null : deliveryUnitNameC.trim();
    }

    public String getDeliveryUnitNameE() {
        return deliveryUnitNameE;
    }

    public void setDeliveryUnitNameE(String deliveryUnitNameE) {
        this.deliveryUnitNameE = deliveryUnitNameE == null ? null : deliveryUnitNameE.trim();
    }

    public String getDeliveryUnitNameCS() {
        return deliveryUnitNameCS;
    }

    public void setDeliveryUnitNameCS(String deliveryUnitNameCS) {
        this.deliveryUnitNameCS = deliveryUnitNameCS == null ? null : deliveryUnitNameCS.trim();
    }

    public String getDeliveryUnitNameES() {
        return deliveryUnitNameES;
    }

    public void setDeliveryUnitNameES(String deliveryUnitNameES) {
        this.deliveryUnitNameES = deliveryUnitNameES == null ? null : deliveryUnitNameES.trim();
    }

    public String getDeliveryUnitMailAddr() {
        return deliveryUnitMailAddr;
    }

    public void setDeliveryUnitMailAddr(String deliveryUnitMailAddr) {
        this.deliveryUnitMailAddr = deliveryUnitMailAddr == null ? null : deliveryUnitMailAddr.trim();
    }

    public String getDeliveryUnitAddrC() {
        return deliveryUnitAddrC;
    }

    public void setDeliveryUnitAddrC(String deliveryUnitAddrC) {
        this.deliveryUnitAddrC = deliveryUnitAddrC == null ? null : deliveryUnitAddrC.trim();
    }

    public String getDeliveryUnitAddrE() {
        return deliveryUnitAddrE;
    }

    public void setDeliveryUnitAddrE(String deliveryUnitAddrE) {
        this.deliveryUnitAddrE = deliveryUnitAddrE == null ? null : deliveryUnitAddrE.trim();
    }

    public String getDeliveryUnitContact1() {
        return deliveryUnitContact1;
    }

    public void setDeliveryUnitContact1(String deliveryUnitContact1) {
        this.deliveryUnitContact1 = deliveryUnitContact1 == null ? null : deliveryUnitContact1.trim();
    }

    public String getDeliveryUnitTelNo1() {
        return deliveryUnitTelNo1;
    }

    public void setDeliveryUnitTelNo1(String deliveryUnitTelNo1) {
        this.deliveryUnitTelNo1 = deliveryUnitTelNo1 == null ? null : deliveryUnitTelNo1.trim();
    }

    public String getDeliveryUnitFaxNo1() {
        return deliveryUnitFaxNo1;
    }

    public void setDeliveryUnitFaxNo1(String deliveryUnitFaxNo1) {
        this.deliveryUnitFaxNo1 = deliveryUnitFaxNo1 == null ? null : deliveryUnitFaxNo1.trim();
    }

    public String getDeliveryUnitMobileNo1() {
        return deliveryUnitMobileNo1;
    }

    public void setDeliveryUnitMobileNo1(String deliveryUnitMobileNo1) {
        this.deliveryUnitMobileNo1 = deliveryUnitMobileNo1 == null ? null : deliveryUnitMobileNo1.trim();
    }

    public String getDeliveryUnitContact2() {
        return deliveryUnitContact2;
    }

    public void setDeliveryUnitContact2(String deliveryUnitContact2) {
        this.deliveryUnitContact2 = deliveryUnitContact2 == null ? null : deliveryUnitContact2.trim();
    }

    public String getDeliveryUnitTelNo2() {
        return deliveryUnitTelNo2;
    }

    public void setDeliveryUnitTelNo2(String deliveryUnitTelNo2) {
        this.deliveryUnitTelNo2 = deliveryUnitTelNo2 == null ? null : deliveryUnitTelNo2.trim();
    }

    public String getDeliveryUnitFaxNo2() {
        return deliveryUnitFaxNo2;
    }

    public void setDeliveryUnitFaxNo2(String deliveryUnitFaxNo2) {
        this.deliveryUnitFaxNo2 = deliveryUnitFaxNo2 == null ? null : deliveryUnitFaxNo2.trim();
    }

    public String getDeliveryUnitMobileNo2() {
        return deliveryUnitMobileNo2;
    }

    public void setDeliveryUnitMobileNo2(String deliveryUnitMobileNo2) {
        this.deliveryUnitMobileNo2 = deliveryUnitMobileNo2 == null ? null : deliveryUnitMobileNo2.trim();
    }

    public String getDeliveryUnitContact3() {
        return deliveryUnitContact3;
    }

    public void setDeliveryUnitContact3(String deliveryUnitContact3) {
        this.deliveryUnitContact3 = deliveryUnitContact3 == null ? null : deliveryUnitContact3.trim();
    }

    public String getDeliveryUnitTelNo3() {
        return deliveryUnitTelNo3;
    }

    public void setDeliveryUnitTelNo3(String deliveryUnitTelNo3) {
        this.deliveryUnitTelNo3 = deliveryUnitTelNo3 == null ? null : deliveryUnitTelNo3.trim();
    }

    public String getDeliveryUnitFaxNo3() {
        return deliveryUnitFaxNo3;
    }

    public void setDeliveryUnitFaxNo3(String deliveryUnitFaxNo3) {
        this.deliveryUnitFaxNo3 = deliveryUnitFaxNo3 == null ? null : deliveryUnitFaxNo3.trim();
    }

    public String getDeliveryUnitMobileNo3() {
        return deliveryUnitMobileNo3;
    }

    public void setDeliveryUnitMobileNo3(String deliveryUnitMobileNo3) {
        this.deliveryUnitMobileNo3 = deliveryUnitMobileNo3 == null ? null : deliveryUnitMobileNo3.trim();
    }

    public Integer getDeliverySendType() {
        return deliverySendType;
    }

    public void setDeliverySendType(Integer deliverySendType) {
        this.deliverySendType = deliverySendType;
    }

    public Integer getDeliveryRecType() {
        return deliveryRecType;
    }

    public void setDeliveryRecType(Integer deliveryRecType) {
        this.deliveryRecType = deliveryRecType;
    }

    public Integer getIsMrSuppl() {
        return isMrSuppl;
    }

    public void setIsMrSuppl(Integer isMrSuppl) {
        this.isMrSuppl = isMrSuppl;
    }

    public String getAllocPickMark() {
        return allocPickMark;
    }

    public void setAllocPickMark(String allocPickMark) {
        this.allocPickMark = allocPickMark == null ? null : allocPickMark.trim();
    }

    public String getInboundConfirm() {
        return inboundConfirm;
    }

    public void setInboundConfirm(String inboundConfirm) {
        this.inboundConfirm = inboundConfirm == null ? null : inboundConfirm.trim();
    }

    public String getPartiaAll() {
        return partiaAll;
    }

    public void setPartiaAll(String partiaAll) {
        this.partiaAll = partiaAll == null ? null : partiaAll.trim();
    }

    public String getMrSheetSo() {
        return mrSheetSo;
    }

    public void setMrSheetSo(String mrSheetSo) {
        this.mrSheetSo = mrSheetSo == null ? null : mrSheetSo.trim();
    }

    public String getDeliveryUnitWarehouse() {
        return deliveryUnitWarehouse;
    }

    public void setDeliveryUnitWarehouse(String deliveryUnitWarehouse) {
        this.deliveryUnitWarehouse = deliveryUnitWarehouse == null ? null : deliveryUnitWarehouse.trim();
    }

    public String getAllocPickMarkRep() {
        return allocPickMarkRep;
    }

    public void setAllocPickMarkRep(String allocPickMarkRep) {
        this.allocPickMarkRep = allocPickMarkRep == null ? null : allocPickMarkRep.trim();
    }

    public String getInboundFlag() {
        return inboundFlag;
    }

    public void setInboundFlag(String inboundFlag) {
        this.inboundFlag = inboundFlag == null ? null : inboundFlag.trim();
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes == null ? null : notes.trim();
    }

    public Integer getQtyLimit() {
        return qtyLimit;
    }

    public void setQtyLimit(Integer qtyLimit) {
        this.qtyLimit = qtyLimit;
    }

    public Integer getMarkStatus() {
        return markStatus;
    }

    public void setMarkStatus(Integer markStatus) {
        this.markStatus = markStatus;
    }

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(String lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser == null ? null : lastUpdateUser.trim();
    }

    public Integer getOptCounter() {
        return optCounter;
    }

    public void setOptCounter(Integer optCounter) {
        this.optCounter = optCounter;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode == null ? null : companyCode.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tmBasDeliveryUnitId=").append(tmBasDeliveryUnitId);
        sb.append(", deliveryUnitNo=").append(deliveryUnitNo);
        sb.append(", deliveryUnitNameC=").append(deliveryUnitNameC);
        sb.append(", deliveryUnitNameE=").append(deliveryUnitNameE);
        sb.append(", deliveryUnitNameCS=").append(deliveryUnitNameCS);
        sb.append(", deliveryUnitNameES=").append(deliveryUnitNameES);
        sb.append(", deliveryUnitMailAddr=").append(deliveryUnitMailAddr);
        sb.append(", deliveryUnitAddrC=").append(deliveryUnitAddrC);
        sb.append(", deliveryUnitAddrE=").append(deliveryUnitAddrE);
        sb.append(", deliveryUnitContact1=").append(deliveryUnitContact1);
        sb.append(", deliveryUnitTelNo1=").append(deliveryUnitTelNo1);
        sb.append(", deliveryUnitFaxNo1=").append(deliveryUnitFaxNo1);
        sb.append(", deliveryUnitMobileNo1=").append(deliveryUnitMobileNo1);
        sb.append(", deliveryUnitContact2=").append(deliveryUnitContact2);
        sb.append(", deliveryUnitTelNo2=").append(deliveryUnitTelNo2);
        sb.append(", deliveryUnitFaxNo2=").append(deliveryUnitFaxNo2);
        sb.append(", deliveryUnitMobileNo2=").append(deliveryUnitMobileNo2);
        sb.append(", deliveryUnitContact3=").append(deliveryUnitContact3);
        sb.append(", deliveryUnitTelNo3=").append(deliveryUnitTelNo3);
        sb.append(", deliveryUnitFaxNo3=").append(deliveryUnitFaxNo3);
        sb.append(", deliveryUnitMobileNo3=").append(deliveryUnitMobileNo3);
        sb.append(", deliverySendType=").append(deliverySendType);
        sb.append(", deliveryRecType=").append(deliveryRecType);
        sb.append(", isMrSuppl=").append(isMrSuppl);
        sb.append(", allocPickMark=").append(allocPickMark);
        sb.append(", inboundConfirm=").append(inboundConfirm);
        sb.append(", partiaAll=").append(partiaAll);
        sb.append(", mrSheetSo=").append(mrSheetSo);
        sb.append(", deliveryUnitWarehouse=").append(deliveryUnitWarehouse);
        sb.append(", allocPickMarkRep=").append(allocPickMarkRep);
        sb.append(", inboundFlag=").append(inboundFlag);
        sb.append(", notes=").append(notes);
        sb.append(", qtyLimit=").append(qtyLimit);
        sb.append(", markStatus=").append(markStatus);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", lastUpdateTime=").append(lastUpdateTime);
        sb.append(", lastUpdateUser=").append(lastUpdateUser);
        sb.append(", optCounter=").append(optCounter);
        sb.append(", companyCode=").append(companyCode);
        sb.append("]");
        return sb.toString();
    }
}